-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of store adapter in aggregator #2143
Get rid of store adapter in aggregator #2143
Conversation
7363c3c
to
dae2e96
Compare
mithril-aggregator/src/database/query/pending_certificate/save_pending_certificate.rs
Outdated
Show resolved
Hide resolved
dae2e96
to
d0ba1ee
Compare
20c0332
to
e450847
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good 👍
I left few questions and suggestions.
mithril-aggregator/src/database/query/pending_certificate/get_pending_certificate.rs
Outdated
Show resolved
Hide resolved
mithril-aggregator/src/database/query/pending_certificate/get_pending_certificate.rs
Outdated
Show resolved
Hide resolved
mithril-aggregator/src/database/query/pending_certificate/save_pending_certificate.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
mithril-aggregator/src/database/repository/pending_certificate_repository.rs
Outdated
Show resolved
Hide resolved
d78085f
to
61fd2ee
Compare
…le and use `projection_with_table`
…ingStore` that use the `StoreAdapter`
28035c4
to
6bad9ab
Compare
* mithril-persistence from `0.2.36` to `0.2.37` * mithril-aggregator from `0.5.114` to `0.5.115`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Content
Replace the store using the legacy store adapter and replace them with a repository implementation in the
Aggregator
.This PR includes:
StoreAdapter
frompersistence
StoreAdapter
forsigner_registration
andCertificatePending
inAggregator
AdapterError
Note
If pruning is unit tested, there is no test that verify that it's really plugged and worked in production.
It's just a configuration in
build_upkeep_service
function in thebuilder.rs
file that activate it.Pre-submit checklist
Comments
Issue(s)
Relates to #2118